package com.tekj.cxqcb.view.Module.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tekj.cxqcb.R;

import java.util.List;

public class UpdataAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    String types[] = {"审核中", "已通过", "未通过"};

    public UpdataAdapter(@Nullable List<String> data) {
        super(R.layout.item_updatalist, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {

        helper.setText(R.id.tv_num, "加盟审批单号：" + "123456789951");

        helper.setText(R.id.tv_why, "备注：" + "身份错误");

        helper.setText(R.id.tv_type, types[1]);
        helper.setTextColor(R.id.tv_type, mContext.getResources().getColor(true ? R.color.colorPrimary : R.color.red));


        helper.setText(R.id.tv_time, "提交时间：" + "2019-05-16 20:00");
    }
}
